package com.itheima.chapter08.collections;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class deno {
    public static void main(String[] args) {
        List<Integer> list =new ArrayList<>();
        list.add(10);
        list.add(23);
        list.add(140);
        list.add(12);
        Collections.sort(list);
        System.out.println(list);
        System.out.println("==================");
        Collections.reverse(list);
        System.out.println(list);
        System.out.println("==================");
                Collections.shuffle(list);
        System.out.println(list);
    }
}
